package com.uzai.console.web.cdkeys;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.uzai.console.annotation.SystemLogType;
import com.uzai.console.dto.cdkeys.CdkeysOldCardExchangeDto;
import com.uzai.console.dto.sys.shortlink.ShortLinkDto;
import com.uzai.console.enums.OperationTypeEnum;
import com.uzai.console.enums.SystemModelEnum;
import com.uzai.console.service.cdkeys.CdkeysService;
import com.uzai.console.service.sys.ShortLinkService;
import com.uzai.console.vo.cdkeys.CdkeysOldCardExchangeVo;
import com.uzai.console.vo.sys.shortlink.ShortLinkVo;
import com.uzai.console.web.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuqi
 * @date 2021年09月11日 20:15
 */
@Api(value = "充值卡",tags = "充值卡管理")
@ApiSort(100)
@RestController
public class CdkeysController extends BaseController {

    @Autowired
    private CdkeysService cdkeysService;

    @ApiOperation(value = "2.0旧卡换3.0新卡", notes = "2.0旧卡换3.0新卡", response = CdkeysOldCardExchangeVo.class)
    @ApiOperationSupport(order = 1)
    @PostMapping("/cdkeys/oldCardExchange")
    public Object oldCardExchange(@RequestBody CdkeysOldCardExchangeDto cdkeysOldCardExchangeDto){
        return cdkeysService.oldCardExchange(cdkeysOldCardExchangeDto);
    }
}
